/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.goods.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.goods.dao.ZtGoodscollDao;
import com.jeesite.modules.goods.entity.ZtGoodscoll;

/**
 * 测试数据Service
 * 
 * @author ThinkGem
 * @version 2018-04-22
 */
@Service
@Transactional(readOnly = true)
public class ZtGoodscollService extends CrudService<ZtGoodscollDao, ZtGoodscoll> {
	

	/**
	 * 获取单条数据
	 * 
	 * @param testData
	 * @return
	 */
	@Override
	public ZtGoodscoll get(ZtGoodscoll ztGoodscoll) {
		ZtGoodscoll entity = super.get(ztGoodscoll);
		if (entity == null) {
			entity = new ZtGoodscoll();
		}
		return entity;
	}
	public List<ZtGoodscoll> findMh(ZtGoodscoll ztGoodscoll){
		return dao.findMh(ztGoodscoll);
	}

	/**
	 * 查询分页数据
	 * 
	 * @param page
	 *            分页对象
	 * @param testData
	 * @return
	 */
	@Override
	public Page<ZtGoodscoll> findPage(Page<ZtGoodscoll> page, ZtGoodscoll ztGoodscoll) {
		return super.findPage(page, ztGoodscoll);
	}

	/**
	 * 保存数据（插入或更新）
	 * 
	 * @param testData
	 */
	@Override
	@Transactional(readOnly = false)
	public void save(ZtGoodscoll ztGoodscoll) {
		super.save(ztGoodscoll);
		
	}

	/**
	 * 更新状态
	 * 
	 * @param testData
	 */
	@Override
	@Transactional(readOnly = false)
	public void updateStatus(ZtGoodscoll ztGoodscoll) {
		super.updateStatus(ztGoodscoll);
	}


	/**
	 * 删除数据
	 * 
	 * @param testData
	 */
	@Override
	@Transactional(readOnly = false)
	public void delete(ZtGoodscoll ztGoodscoll) {
		super.delete(ztGoodscoll);
	}

}